<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_User_Privacy extends ORM {

	// Relationships
	protected $_belongs_to = array('user' => array());
        protected $_table_name = 'user_privacy';
        
        public function rules()
	{
		return array(
			'view_profile_permission' => array(
				
				array('range', array(':value',1, 4)),
			),
                        'send_invitation_permission' => array(
				
				array('range', array(':value',1, 3)),                        
			),
                        'comment_project_permission' => array(
				
				array('range', array(':value',1, 4)),                       
			),
                        'send_message_permission' => array(
				
				array('range', array(':value',1, 3)),                        
			),
                        'new_message_notification' => array(
				
				array('range', array(':value',0, 1)),                      
			),
                        'new_invitation_notification' => array(
				
				array('range', array(':value',0, 1)),                      
			),
                        'new_comment_notification' => array(
				
				array('range', array(':value',0, 1)),                      
			),
                        'new_project_notification' => array(
				
				array('range', array(':value',0, 1)),                      
			),        
		);
	}
}